<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css"  href="/webjars/bootstrap/3.4.1/css/bootstrap.css">
</head>
<style>
    .catalog_common, .catalog_img {
        margin: 0 auto;
        margin-bottom: 20px;
        padding: 10px 10px;
        width: 99%;
        height: 410px;
        box-shadow: 1px 1px 10px #cccccc;
    }
    .catalog_common > div:first-child {
        font-size: 18px;
        border-bottom: #cccccc solid 1px;
    }
    .catalog_common > div:last-child {
        float: right;
        font-size: 16px;
    }
    .catalog_common > ul {
        padding: 0;
        list-style-type: none;
    }
    .catalog_common > ul > li {
        line-height: 30px;
        font-size: 16px;
    }
    .catalog_common > ul > li > a {
        color: #333333;
    }
</style>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">LGNERV</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <@g_catalog bId="d8ac99feff5f44a992548625a221883e">
                    <li><a href="/catalog/${catalog.bId}">${catalog.name}</a></li>
                </@g_catalog>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

<div class="main_content" style="margin: 0 auto; width: 90%">
    <div class="row">
        <div class="col-md-9">
            <div class="row">
                <div class="col-md-6">
                    <div class="catalog_img">
                        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                            <!-- Indicators -->
                            <ol class="carousel-indicators">
                                <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                                <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                                <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                            </ol>

                            <!-- Wrapper for slides -->
                            <div class="carousel-inner" role="listbox">
                                <div class="item active">
                                    <img src="..." alt="...">
                                    <div class="carousel-caption">
                                        ...
                                    </div>
                                </div>
                                <div class="item">
                                    <img src="..." alt="...">
                                    <div class="carousel-caption">
                                        ...
                                    </div>
                                </div>
                                ...
                            </div>

                            <!-- Controls -->
                            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                                <span class="sr-only">Previous</span>
                            </a>
                            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                                <span class="sr-only">Next</span>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="catalog_common">
                        <@g_catalog bId="d8ac99feff5f44a992548625a221883e">
                            <div>${catalog.name}</div>
                            <ul>
                                <@g_article cId="d8ac99feff5f44a992548625a221883e">
                                    <#list articles as article>
                                        <li><a href="/article/${article.bId}">${article.title}</a></li>
                                    </#list>
                                </@g_article>
                            </ul>
                            <div><a href="/article/list/${catalog.bId}">查看更多</a></div>
                        </@g_catalog>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="catalog_img">
                        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                            <!-- Indicators -->
                            <ol class="carousel-indicators">
                                <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                                <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                                <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                            </ol>

                            <!-- Wrapper for slides -->
                            <div class="carousel-inner" role="listbox">
                                <div class="item active">
                                    <img src="..." alt="...">
                                    <div class="carousel-caption">
                                        ...
                                    </div>
                                </div>
                                <div class="item">
                                    <img src="..." alt="...">
                                    <div class="carousel-caption">
                                        ...
                                    </div>
                                </div>
                                ...
                            </div>

                            <!-- Controls -->
                            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                                <span class="sr-only">Previous</span>
                            </a>
                            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                                <span class="sr-only">Next</span>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="catalog_common">
                        <div>最近发布</div>
                        <ul>
                            <li><a href="#">Cras justo odio</a></li>
                            <li><a href="#">Dapibus ac facilisis in</a></li>
                            <li><a href="#">Cras justo odio</a></li>
                            <li><a href="#">Dapibus ac facilisis in</a></li>
                            <li><a href="#">Cras justo odio</a></li>
                            <li><a href="#">Dapibus ac facilisis in</a></li>
                            <li><a href="#">Cras justo odio</a></li>
                            <li><a href="#">Dapibus ac facilisis in</a></li>
                            <li><a href="#">Cras justo odio</a></li>
                            <li><a href="#">Dapibus ac facilisis in</a></li>
                            <li><a href="#">Dapibus ac facilisis in</a></li>
                        </ul>
                        <div><a href="#">查看更多</a></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="catalog_common">
                <div>最近发布</div>
                <ul>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                </ul>
                <div><a href="#">查看更多</a></div>
            </div>
            <div class="catalog_common">
                <div>最近发布</div>
                <ul>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Cras justo odio</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                    <li><a href="#">Dapibus ac facilisis in</a></li>
                </ul>
                <div><a href="#">查看更多</a></div>
            </div>
        </div>
    </div>
</div>

<script src="/webjars/jquery/3.4.1/jquery.js"></script>
<script src="/webjars/bootstrap/3.4.1/js/bootstrap.js"></script>
</body>
</html>